//package com.wangfugui.mybatisplus.config;
//
//import lombok.Data;
//import org.springframework.beans.factory.InitializingBean;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@ConfigurationProperties(prefix = "aliyun.oss")
//@Data
//public class OssConfig implements InitializingBean{
//    @Value("${obs.file.endpoint}")
//    private String file_endpoint;
//
//    @Value("${obs.file.keyid}")
//    private String file_keyid;
//
//    @Value("${obs.file.keysecret}")
//    private String file_keysecret;
//
//    @Value("${obs.file.filehost}")
//    private String file_filehost;
//
//    @Value("${obs.file.bucketname1}")
//    private String file_bucketname1;
//
//
//    public static String END_POINT         ;
//    public static String ACCESS_KEY_ID     ;
//    public static String ACCESS_KEY_SECRET ;
//    public static String BUCKET_NAME1      ;
//    public static String FILE_HOST         ;
//
//    @Override
//    public void afterPropertiesSet() throws Exception {
//        END_POINT = file_endpoint;
//        ACCESS_KEY_ID = file_keyid;
//        ACCESS_KEY_SECRET = file_keysecret;
//        BUCKET_NAME1 = file_bucketname1;
//        FILE_HOST = file_filehost;
//    }
//}
